package com.youlu.campus.entity;

import com.youlu.campus.base.user.UserBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.IndexDirection;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * H5用户表
 */
@Getter
@Setter
@Document("h5_user_info")
public class H5UserPO extends UserBase {
    /**
     * 账户ID
     */
    @Indexed
    private String accountInfoId;
    /**
     * 老账号ID
     */
    private String oldAccountInfoId;
    /**
     * 会员卡编号
     */
    @Indexed
    private String memberShipInfoId;

    /**
     * 是否会员.是否会员
     */
    private Boolean memberShiped;
    /**
     * 是否失效
     */
    private Date expiredTime;
    /**
     * 剩余次数
     */
    private Integer remainedNum;
    /**
     * 是否授权
     */
    private Boolean binded = Boolean.FALSE;

    /**
     * 是否绑定手机号
     */
    protected Boolean checkedMobile;
    /**
     * 绑定手机号时间
     */
    @Indexed(direction = IndexDirection.DESCENDING)
    protected Date checkedMobileTime;
}
